package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 冠字号配对对象 banknote_serial_number_pairing
 * 
 * @author ruoyi
 * @date 2025-02-27
 */
public class BanknoteSerialNumberPairing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 0-龙钞 1-蛇钞 */
    @Excel(name = "0-龙钞 1-蛇钞")
    private Integer billType;

    /** 冠字号 */
    @Excel(name = "冠字号")
    private String serialNumber;

    /** 归属人 */
    @Excel(name = "归属人")
    private String owner;

    @Excel(name = "配号时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date peiTime;

    public BanknoteSerialNumberPairing(Integer billType, String serialNumber, String numberOwnerAccount) {
        this.billType = billType;
        this.serialNumber = serialNumber;
        this.owner = numberOwnerAccount;
    }

    public BanknoteSerialNumberPairing() {
    }



    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBillType(Integer billType)
    {
        this.billType = billType;
    }

    public Integer getBillType()
    {
        return billType;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }

    public Date getPeiTime() {
        return peiTime;
    }

    public void setPeiTime(Date peiTime) {
        this.peiTime = peiTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("billType", getBillType())
            .append("serialNumber", getSerialNumber())
            .append("owner", getOwner())
            .toString();
    }
}
